import { Button, Space, Upload } from 'antd';


function FaceModalFooter({ isOnCamera, loginFileName }) {

  return (

    <Space>
      <Upload
        className='face-footer-upload'
        accept='.png,.jpg,.jpeg,.bmp'
        showUploadList={false}
      >
        {
          <Button>上传图片</Button>
        }

      </Upload>
      <Button disabled={!isOnCamera}>拍照</Button>
      {
        isOnCamera ?
          <Button >关闭摄像头</Button>
          :
          <Button >打开摄像头</Button>
      }

      <Button >重置</Button>
      <Button disabled={!loginFileName}>完成</Button>
    </Space>



  )
}
export default FaceModalFooter